projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9c2785
)
(w32font_draw): Pay attention to s->padding_p.
author
Kenichi Handa
<handa@m17n.org>
Mon, 25 Feb 2008 01:46:30 +0000
(
01:46
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Mon, 25 Feb 2008 01:46:30 +0000
(
01:46
+0000)
src/w32font.c
patch
|
blob
|
history
diff --git
a/src/w32font.c
b/src/w32font.c
index d0cbe508d4f09d77de91b4d992eff3a79bb295d1..ff0f4d2c8757787e78d05e0567e3d12e8f36eb36 100644
(file)
--- a/
src/w32font.c
+++ b/
src/w32font.c
@@
-487,7
+487,16
@@
w32font_draw (s, from, to, x, y, with_background)
DeleteObject (brush);
}
- ExtTextOutW (s->hdc, x, y, options, NULL, s->char2b + from, to - from, NULL);
+ if (s->padding_p)
+ {
+ int len = to - from, i;
+
+ for (i = 0; i < len; i++)
+ ExtTextOutW (s->hdc, x + i, y, options, NULL,
+ s->char2b + from + i, len, NULL);
+ }
+ else
+ ExtTextOutW (s->hdc, x, y, options, NULL, s->char2b + from, to - from, NULL);
/* Restore clip region. */
if (s->num_clips > 0)